<!-- Title Page -->
<!--  modifier style titre -->
<h3 style="margin-left:25px;margin-top:0px;margin-bottom:15px">
<?php echo lang('news_add_title_page');?>
</h3>

<form method="POST" action="<?php echo base_url()?>admin/news/add/add_news">

<!-- Title News -->
<p> <?php echo lang('news_add_title_news');?> 
<input type="text" value="<?php echo set_value('title');?>" name="title" size="80px">
</p>

<!--  Title Error -->
<!--  modifier style erreur -->
<div id="error"> 
<?php echo form_error('title');?>
</div>


<!-- Content News -->
<p><?php echo lang('news_add_content');?></p>

<!-- Content Error -->
<div id="error"> 
<?php echo form_error('content'); ?>
</div>

<!-- TextArea News -->
<textarea name="content" id="editor1" style="witdh:500px;margin-left:10px;">
<?php echo set_value('content');?>
</textarea>
<script type="text/javascript">
	CKEDITOR.replace( 'editor1' );
</script>

<!-- Category News -->
<p> <?php echo lang('news_add_category');?> :</p> 
<SELECT name="category" size="1">
<?php foreach($category as $cat):?>
<option value="<?php echo $cat->id;?>"> <?php echo $cat->name;?> </option>
<?php endforeach;?>
</SELECT>


<input type="submit" value="Ajouter">
</form>